﻿Ext.define('NicksList.view.List', {
    extend: 'Ext.Panel',
    config: {
        title: 'Items',
        layout: 'fit',
        items: [{
            xtype: 'toolbar',
            docked: 'bottom',
            items: [{
                text: 'Add new item',
                itemId: 'btnAddItem'
            }]
        }, {
            xtype: 'list',
            itemId: 'itemList',
            store: 'ItemStore',
            itemTpl: '<div><input name="Selected" value="{ItemID}" type="checkbox" style="margin-right: 10px" /><strong>{Name}</strong><a class="delete-btn" href="javascript:">Delete</a></div>'
        }]
    }
});